#include <iostream>
#include <string>
#include "FamilyAccount.h"
#include "StockAccount.h"
#include "TwoYearAccount.h"

class FamilyAccount;

class AccountFactory{
public:
	static AccountImpl* CreateAccount(const std::string& Impl)
	{
		if (Impl.compare(std::string("FamilyAccount")) == 0)
			return new FamilyAccount();
		if (Impl == "StockAccount")
			return new StockAccount();
		return new TwoYearAccount();
	}

AccountFactory();
~AccountFactory();
	
};

